package com.javaketang.dky.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javaketang.dky.entity.EasybuyOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dky
 * @since 2021-07-06
 */
public interface EasybuyOrderService extends IService<EasybuyOrder> {


    /**
     * 查询我的订单
     * @param userId  用户id
     * @return
     */
    public List queryByIdOrAllOrder(Page page, Integer userId);


    /**
     * 查询我的订单
     * @param userId  用户id
     * @return
     */
    public List queryByIdOrAllOrder2(Page page, Integer userId);

    /**
     * 根据商品id查询
     * @param id
     * @return
     */
    public List queryOrderById(Integer id);

}
